package com.atguigu.controller;

import com.atguigu.pojo.Student;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试，Json序列化工具，是否转成FastJson，不是jackson
 *
 */
@RestController
@RequestMapping("fastJson")
public class FastJsonController {

    @RequestMapping("fastJsonStudent")
    public Student fastJsonStudent(){
        Student student = new Student(1,"张三",20,"北京市","zs@qq.com");
        return student;
    }
}
